class RunnableImpl implements Runnable {    	public void run() {  		try {              // v3			System.out.println("Begin sleep");  			Thread.sleep(500);  		   System.out.println("End sleep");  		} catch (InterruptedException e) {  			e.printStackTrace();  		}    	}  }      public class JoinTest{                    public static void main(String[] args) {              Thread t = new Thread(new RunnableImpl());              t.start();              try {                  t.join(1000);                  System.out.println("join Finish");              } catch (InterruptedException e) {                  e.printStackTrace();                   }          }      }  